﻿using Furion.DataValidation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 账号配置修改
    /// </summary>
    public class AccountSettingsModifyDto : AccountSettingsDto
    {
        /// <summary>
        /// 昵称
        /// </summary>
        [Required(ErrorMessage = "用户昵称必填")]
        public override string NickName { get; set; }
        /// <summary>
        /// 电子邮件
        /// </summary>
        [DataValidation(ValidationTypes.EmailAddress, ErrorMessage = "请输入正确的电子邮件", AllowNullValue = true, AllowEmptyStrings = true)]
        public override string Email { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [DataValidation(ValidationTypes.PhoneNumber, ErrorMessage = "请输入正确的手机号码", AllowNullValue = true, AllowEmptyStrings = true)]
        public override string PhoneNumber { get; set; }
    }
}
